home *** CD-ROM | disk | FTP | other *** search
Unknown | 1991-08-04 | 11.4 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
| |
100%
| gt2
| Kopftext: 'out of virtual memory'
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 6f 75 74 20 6f 66 20 76 | 69 72 74 75 61 6c 20 6d |out of v|irtual m|
|00000010| 65 6d 6f 72 79 0a 00 00 | ff ff c8 ae 31 2e 39 2e |emory...|....1.9.|
|00000020| 31 20 28 4b 26 52 20 43 | 20 76 65 72 73 69 6f 6e |1 (K&R C| version|
|00000030| 29 00 00 00 25 64 00 00 | 25 67 00 00 65 72 72 6f |)...%d..|%g..erro|
|00000040| 72 00 25 73 3a 20 25 73 | 00 00 3c 75 6e 6b 6e 6f |r.%s: %s|..<unkno|
|00000050| 77 6e 20 65 72 72 6f 72 | 3e 20 25 64 00 00 0a 64 |wn error|> %d...d|
|00000060| 75 6d 70 69 6e 67 20 62 | 6f 6f 6c 65 61 6e 20 61 |umping b|oolean a|
|00000070| 72 72 61 79 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |rray inf|ormation|
|00000080| 0a 73 69 7a 65 20 3d 20 | 25 64 0a 65 6e 64 20 6f |.size = |%d.end o|
|00000090| 66 20 61 72 72 61 79 20 | 64 75 6d 70 0a 00 00 00 |f array |dump....|
|000000a0| 00 02 00 00 25 64 00 00 | 25 3f 6c 64 25 6e 00 00 |....%d..|%?ld%n..|
|000000b0| 25 3f 6c 75 25 6e 00 00 | 00 0c 00 00 00 b0 00 73 |%?lu%n..|.......s|
|000000c0| 00 c4 00 af 04 00 00 00 | 00 b0 00 e1 00 c4 01 1d |........|........|
|000000d0| 04 00 00 00 00 8d 00 22 | 00 9d 01 78 90 00 00 00 |......."|...x....|
|000000e0| 00 22 00 1e 00 32 00 b4 | 06 00 00 00 00 36 00 1e |."...2..|.....6..|
|000000f0| 00 46 00 b4 06 00 00 00 | 00 22 00 e6 00 32 01 7c |.F......|."...2.||
|00000100| 06 00 00 00 00 36 00 e6 | 00 46 01 7c 06 00 00 00 |.....6..|.F.|....|
|00000110| 00 4a 00 e6 00 5a 01 7c | 06 00 00 00 00 5e 00 e6 |.J...Z.||.....^..|
|00000120| 00 6e 01 7c 06 00 00 00 | 00 ba 00 ac 00 6f 00 c8 |.n.|....|.....o..|
|00000130| 00 b3 80 00 00 00 00 0a | 00 14 00 1a 00 aa 88 00 |........|........|
|00000140| 00 00 00 0a 00 dc 00 1a | 01 72 88 00 00 00 00 72 |........|.r.....r|
|00000150| 00 14 00 82 00 aa 88 00 | 00 00 00 3c 00 33 01 0e |........|...<.3..|
|00000160| 01 cd 00 04 00 06 25 23 | 73 00 77 00 72 00 00 00 |......%#|s.w.r...|
|00000170| 02 4f 4b 00 06 43 61 6e | 63 65 6c 00 07 63 6f 6e |.OK..Can|cel..con|
|00000180| 73 6f 6c 65 04 66 69 6c | 65 00 07 63 6f 6e 73 6f |sole.fil|e..conso|
|00000190| 6c 65 04 66 69 6c 65 00 | 0c 63 6f 6e 73 6f 6c 65 |le.file.|.console|
|000001a0| 2b 66 69 6c 65 00 0f 63 | 6f 6e 73 6f 6c 65 2b 70 |+file..c|onsole+p|
|000001b0| 72 69 6e 74 65 72 0f 53 | 74 61 6e 64 61 72 64 20 |rinter.S|tandard |
|000001c0| 49 6e 70 75 74 3a 10 53 | 74 61 6e 64 61 72 64 20 |Input:.S|tandard |
|000001d0| 4f 75 74 70 75 74 3a 00 | 0d 43 6f 6d 6d 61 6e 64 |Output:.|.Command|
|000001e0| 20 4c 69 6e 65 3a 00 00 | 54 45 58 54 00 00 25 23 | Line:..|TEXT..%#|
|000001f0| 73 00 25 23 73 00 00 32 | 00 0a ff ff cd a2 00 08 |s.%#s..2|........|
|00000200| 00 04 00 09 00 00 00 19 | 00 50 00 01 00 00 07 60 |........|.P.....`|
|00000210| 00 00 01 6a 00 00 00 1c | 00 1c 00 1e 00 1c 00 24 |...j....|.......$|
|00000220| 08 2e 63 6f 6e 73 6f 6c | 65 00 4e 75 4e f9 00 00 |..consol|e.NuN...|
|00000230| 4e f9 00 00 00 64 00 64 | 00 c8 01 2c 00 64 00 78 |N....d.d|...,.d.x|
|00000240| 27 0f 27 0f 00 00 07 63 | 6f 6e 73 6f 6c 65 61 00 |'.'....c|onsolea.|
|00000250| 77 00 25 23 73 2e 6c 6f | 67 00 01 14 04 46 69 6c |w.%#s.lo|g....Fil|
|00000260| 65 00 06 51 75 69 74 2f | 51 00 04 45 64 69 74 00 |e..Quit/|Q..Edit.|
|00000270| 24 55 6e 64 6f 2f 5a 3b | 28 2d 3b 43 75 74 2f 58 |$Undo/Z;|(-;Cut/X|
|00000280| 3b 43 6f 70 79 2f 43 3b | 50 61 73 74 65 2f 56 3b |;Copy/C;|Paste/V;|
|00000290| 43 6c 65 61 72 00 16 70 | 72 65 73 73 20 c7 72 65 |Clear..p|ress .re|
|000002a0| 74 75 72 6e c8 20 74 6f | 20 65 78 69 74 00 00 00 |turn. to| exit...|
|000002b0| 0d 00 01 01 01 01 01 01 | 01 01 01 02 02 02 02 02 |........|........|
|000002c0| 01 01 01 01 01 01 01 01 | 01 01 01 01 01 01 01 01 |........|........|
|000002d0| 01 01 04 08 08 08 08 08 | 08 08 08 08 08 08 08 08 |........|........|
|000002e0| 08 08 10 10 10 10 10 10 | 10 10 10 10 08 08 08 08 |........|........|
|000002f0| 08 08 08 60 60 60 60 60 | 60 40 40 40 40 40 40 40 |...`````|`@@@@@@@|
|00000300| 40 40 40 40 40 40 40 40 | 40 40 40 40 40 08 08 08 |@@@@@@@@|@@@@@...|
|00000310| 08 08 08 a0 a0 a0 a0 a0 | a0 80 80 80 80 80 80 80 |........|........|
|00000320| 80 80 80 80 80 80 80 80 | 80 80 80 80 80 08 08 08 |........|........|
|00000330| 08 01 00 00 73 63 72 61 | 74 63 68 00 77 62 2b 00 |....scra|tch.wb+.|
|00000340| 74 65 6d 70 00 00 25 73 | 25 2e 34 64 00 00 80 00 |temp..%s|%.4d....|
|00000350| 00 00 80 00 00 00 80 00 | 00 00 25 73 3a 20 00 00 |........|..%s: ..|
|00000360| 45 72 72 6f 72 20 25 64 | 00 00 30 31 32 33 34 35 |Error %d|..012345|
|00000370| 36 37 38 39 41 42 43 44 | 45 46 00 00 30 31 32 33 |6789ABCD|EF..0123|
|00000380| 34 35 36 37 38 39 61 62 | 63 64 65 66 00 00 00 01 |456789ab|cdef....|
|00000390| 00 00 54 48 49 4e 4b 20 | 43 20 4c 69 62 72 61 72 |..THINK |C Librar|
|000003a0| 69 65 73 20 a9 20 31 39 | 38 39 20 53 79 6d 61 6e |ies . 19|89 Syman|
|000003b0| 74 65 63 20 43 6f 72 70 | 2e 00 00 00 00 1f 00 1c |tec Corp|........|
|000003c0| 00 1f 00 1e 00 1f 00 1e | 00 1f 00 1f 00 1e 00 1f |........|........|
|000003d0| 00 1e 00 1f 00 00 00 1f | 00 3b 00 5a 00 78 00 97 |........|.;.Z.x..|
|000003e0| 00 b5 00 d4 00 f3 01 11 | 01 30 01 4e ff ff d2 f4 |........|.0.N....|
|000003f0| ff ff d2 fc ff ff d3 04 | ff ff d3 0c ff ff d3 16 |........|........|
|00000400| ff ff d3 20 ff ff d3 28 | ff ff d3 32 ff ff d3 3a |... ...(|...2...:|
|00000410| ff ff d3 44 ff ff d3 4a | ff ff d3 50 ff ff d3 54 |...D...J|...P...T|
|00000420| ff ff d3 5a ff ff d3 60 | ff ff d3 68 ff ff d3 72 |...Z...`|...h...r|
|00000430| ff ff d3 7a ff ff d3 84 | 00 00 53 75 6e 64 61 79 |...z....|..Sunday|
|00000440| 00 00 4d 6f 6e 64 61 79 | 00 00 54 75 65 73 64 61 |..Monday|..Tuesda|
|00000450| 79 00 57 65 64 6e 65 73 | 64 61 79 00 54 68 75 72 |y.Wednes|day.Thur|
|00000460| 73 64 61 79 00 00 46 72 | 69 64 61 79 00 00 53 61 |sday..Fr|iday..Sa|
|00000470| 74 75 72 64 61 79 00 00 | 4a 61 6e 75 61 72 79 00 |turday..|January.|
|00000480| 46 65 62 72 75 61 72 79 | 00 00 4d 61 72 63 68 00 |February|..March.|
|00000490| 41 70 72 69 6c 00 4d 61 | 79 00 4a 75 6e 65 00 00 |April.Ma|y.June..|
|000004a0| 4a 75 6c 79 00 00 41 75 | 67 75 73 74 00 00 53 65 |July..Au|gust..Se|
|000004b0| 70 74 65 6d 62 65 72 00 | 4f 63 74 6f 62 65 72 00 |ptember.|October.|
|000004c0| 4e 6f 76 65 6d 62 65 72 | 00 00 44 65 63 65 6d 62 |November|..Decemb|
|000004d0| 65 72 00 00 25 63 0a 00 | 25 61 20 25 62 20 25 44 |er..%c..|%a %b %D|
|000004e0| 20 25 48 3a 25 4d 3a 25 | 53 20 25 59 00 00 25 32 | %H:%M:%|S %Y..%2|
|000004f0| 64 00 25 2e 33 64 00 00 | 41 4d 00 00 50 4d 00 00 |d.%.3d..|AM..PM..|
|00000500| 25 64 00 00 25 64 2f 25 | 64 2f 25 2e 32 64 00 00 |%d..%d/%|d/%.2d..|
|00000510| 25 64 3a 25 2e 32 64 20 | 25 63 4d 00 41 50 00 00 |%d:%.2d |%cM.AP..|
|00000520| 25 2e 32 64 00 00 25 64 | 00 00 25 2e 2a 73 00 00 |%.2d..%d|..%.*s..|
|00000530| 0a 64 75 6d 70 69 6e 67 | 20 74 68 65 20 68 61 73 |.dumping| the has|
|00000540| 68 20 74 61 62 6c 65 0a | 00 00 6c 6f 63 61 74 69 |h table.|..locati|
|00000550| 6f 6e 5b 25 64 5d 20 3d | 20 6b 65 79 20 73 65 74 |on[%d] =| key set|
|00000560| 20 25 73 2c 20 6b 65 79 | 20 25 73 0a 00 00 65 6e | %s, key| %s...en|
|00000570| 64 20 64 75 6d 70 69 6e | 67 20 68 61 73 68 20 74 |d dumpin|g hash t|
|00000580| 61 62 6c 65 0a 0a 00 00 | 00 01 00 00 5f 50 4f 53 |able....|...._POS|
|00000590| 49 58 5f 4f 50 54 49 4f | 4e 5f 4f 52 44 45 52 00 |IX_OPTIO|N_ORDER.|
|000005a0| 2d 2d 00 00 25 73 3a 20 | 75 6e 72 65 63 6f 67 6e |--..%s: |unrecogn|
|000005b0| 69 7a 65 64 20 6f 70 74 | 69 6f 6e 2c 20 63 68 61 |ized opt|ion, cha|
|000005c0| 72 61 63 74 65 72 20 63 | 6f 64 65 20 30 25 6f 0a |racter c|ode 0%o.|
|000005d0| 00 00 25 73 3a 20 75 6e | 72 65 63 6f 67 6e 69 7a |..%s: un|recogniz|
|000005e0| 65 64 20 6f 70 74 69 6f | 6e 20 60 2d 25 63 27 0a |ed optio|n `-%c'.|
|000005f0| 00 00 25 73 3a 20 6e 6f | 20 61 72 67 75 6d 65 6e |..%s: no| argumen|
|00000600| 74 20 66 6f 72 20 60 2d | 25 63 27 20 6f 70 74 69 |t for `-|%c' opti|
|00000610| 6f 6e 0a 00 00 00 ff ff | d5 8e ff ff d5 96 00 02 |on......|........|
|00000620| 00 00 63 68 61 72 20 2a | 00 00 63 68 61 72 20 2a |..char *|..char *|
|00000630| 00 00 69 6e 74 65 72 6e | 61 6c 20 65 72 72 6f 72 |..intern|al error|
|00000640| 2c 20 25 63 20 21 3d 20 | 27 7b 27 20 6f 6e 20 6c |, %c != |'{' on l|
|00000650| 69 6e 65 20 25 64 20 69 | 6e 20 66 69 6c 65 20 25 |ine %d i|n file %|
|00000660| 73 25 61 00 6b 65 79 6c | 69 73 74 2e 63 00 7b 0a |s%a.keyl|ist.c.{.|
|00000670| 00 00 2a 00 4e 6f 20 77 | 6f 72 64 73 20 69 6e 20 |..*.No w|ords in |
|00000680| 69 6e 70 75 74 20 66 69 | 6c 65 2c 20 64 69 64 20 |input fi|le, did |
|00000690| 79 6f 75 20 66 6f 72 67 | 65 74 20 74 6f 20 70 72 |you forg|et to pr|
|000006a0| 65 70 65 6e 64 20 25 73 | 20 6f 72 20 75 73 65 20 |epend %s| or use |
|000006b0| 2d 74 20 61 63 63 69 64 | 65 6e 74 61 6c 6c 79 3f |-t accid|entally?|
|000006c0| 0a 25 61 00 25 25 00 00 | 2c 0a 00 00 25 25 00 00 |.%a.%%..|,...%%..|
|000006d0| 2c 0a 00 00 4b 65 79 20 | 6c 69 6e 6b 3a 20 22 25 |,...Key |link: "%|
|000006e0| 73 22 20 3d 20 22 25 73 | 22 2c 20 77 69 74 68 20 |s" = "%s|", with |
|000006f0| 6b 65 79 20 73 65 74 20 | 22 25 73 22 2e 0a 00 00 |key set |"%s"....|
|00000700| 4b 65 79 20 6c 69 6e 6b | 3a 20 22 25 73 22 20 3d |Key link|: "%s" =|
|00000710| 20 22 25 73 22 2c 20 77 | 69 74 68 20 6b 65 79 20 | "%s", w|ith key |
|00000720| 73 65 74 20 22 25 73 22 | 2e 0a 00 00 74 75 72 6e |set "%s"|....turn|
|00000730| 69 6e 67 20 6f 6e 20 2d | 53 20 6f 70 74 69 6f 6e |ing on -|S option|
|00000740| 2e 0a 00 00 53 6f 6d 65 | 20 69 6e 70 75 74 20 6b |....Some| input k|
|00000750| 65 79 73 20 68 61 76 65 | 20 69 64 65 6e 74 69 63 |eys have| identic|
|00000760| 61 6c 20 68 61 73 68 20 | 76 61 6c 75 65 73 2c 20 |al hash |values, |
|00000770| 65 78 61 6d 69 6e 65 6f | 75 74 70 75 74 20 63 61 |examineo|utput ca|
|00000780| 72 65 66 75 6c 6c 79 2e | 2e 2e 0a 00 53 6f 6d 65 |refully.|....Some|
|00000790| 20 69 6e 70 75 74 20 6b | 65 79 73 20 68 61 76 65 | input k|eys have|
|000007a0| 20 69 64 65 6e 74 69 63 | 61 6c 20 68 61 73 68 20 | identic|al hash |
|000007b0| 76 61 6c 75 65 73 2c 0a | 74 72 79 20 64 69 66 66 |values,.|try diff|
|000007c0| 65 72 65 6e 74 20 6b 65 | 79 20 70 6f 73 69 74 69 |erent ke|y positi|
|000007d0| 6f 6e 73 20 6f 72 20 75 | 73 65 20 6f 70 74 69 6f |ons or u|se optio|
|000007e0| 6e 20 2d 44 2e 0a 25 61 | 00 00 0a 23 64 65 66 69 |n -D..%a|...#defi|
|000007f0| 6e 65 20 4d 49 4e 5f 57 | 4f 52 44 5f 4c 45 4e 47 |ne MIN_W|ORD_LENG|
|00000800| 54 48 20 25 64 0a 23 64 | 65 66 69 6e 65 20 4d 41 |TH %d.#d|efine MA|
|00000810| 58 5f 57 4f 52 44 5f 4c | 45 4e 47 54 48 20 25 64 |X_WORD_L|ENGTH %d|
|00000820| 0a 23 64 65 66 69 6e 65 | 20 4d 49 4e 5f 48 41 53 |.#define| MIN_HAS|
|00000830| 48 5f 56 41 4c 55 45 20 | 25 64 0a 23 64 65 66 69 |H_VALUE |%d.#defi|
|00000840| 6e 65 20 4d 41 58 5f 48 | 41 53 48 5f 56 41 4c 55 |ne MAX_H|ASH_VALU|
|00000850| 45 20 25 64 0a 2f 2a 0a | 25 35 64 20 6b 65 79 77 |E %d./*.|%5d keyw|
|00000860| 6f 72 64 73 0a 25 35 64 | 20 69 73 20 74 68 65 20 |ords.%5d| is the |
|00000870| 6d 61 78 69 6d 75 6d 20 | 6b 65 79 20 72 61 6e 67 |maximum |key rang|
|00000880| 65 0a 2a 2f 0a 0a 00 00 | 2a 73 74 72 20 3d 3d 20 |e.*/....|*str == |
|00000890| 2a 72 65 73 77 6f 72 64 | 2d 3e 25 73 20 26 26 20 |*resword|->%s && |
|000008a0| 21 73 74 72 6e 63 6d 70 | 20 28 73 74 72 20 2b 20 |!strncmp| (str + |
|000008b0| 31 2c 20 72 65 73 77 6f | 72 64 2d 3e 25 73 20 2b |1, reswo|rd->%s +|
|000008c0| 20 31 2c 20 6c 65 6e 20 | 2d 20 31 29 00 00 2a 73 | 1, len |- 1)..*s|
|000008d0| 74 72 20 3d 3d 20 2a 72 | 65 73 77 6f 72 64 2d 3e |tr == *r|esword->|
|000008e0| 25 73 20 26 26 20 21 73 | 74 72 6e 63 6d 70 20 28 |%s && !s|trncmp (|
|000008f0| 73 74 72 20 2b 20 31 2c | 20 72 65 73 77 6f 72 64 |str + 1,| resword|
|00000900| 2d 3e 25 73 20 2b 20 31 | 2c 20 6c 65 6e 20 2d 20 |->%s + 1|, len - |
|00000910| 31 29 00 00 2a 73 74 72 | 20 3d 3d 20 2a 72 65 73 |1)..*str| == *res|
|00000920| 77 6f 72 64 2d 3e 25 73 | 20 26 26 20 21 73 74 72 |word->%s| && !str|
|00000930| 63 6d 70 20 28 73 74 72 | 20 2b 20 31 2c 20 72 65 |cmp (str| + 1, re|
|00000940| 73 77 6f 72 64 2d 3e 25 | 73 20 2b 20 31 29 00 00 |sword->%|s + 1)..|
|00000950| 2a 73 74 72 20 3d 3d 20 | 2a 72 65 73 77 6f 72 64 |*str == |*resword|
|00000960| 20 26 26 20 21 73 74 72 | 6e 63 6d 70 20 28 73 74 | && !str|ncmp (st|
|00000970| 72 20 2b 20 31 2c 20 72 | 65 73 77 6f 72 64 20 2b |r + 1, r|esword +|
|00000980| 20 31 2c 20 6c 65 6e 20 | 2d 20 31 29 00 00 2a 73 | 1, len |- 1)..*s|
|00000990| 74 72 20 3d 3d 20 2a 72 | 65 73 77 6f 72 64 20 26 |tr == *r|esword &|
|000009a0| 26 20 21 73 74 72 63 6d | 70 20 28 73 74 72 20 2b |& !strcm|p (str +|
|000009b0| 20 31 2c 20 72 65 73 77 | 6f 72 64 20 2b 20 31 29 | 1, resw|ord + 1)|
|000009c0| 00 00 20 20 69 66 20 28 | 6c 65 6e 20 3c 3d 20 4d |.. if (|len <= M|
|000009d0| 41 58 5f 57 4f 52 44 5f | 4c 45 4e 47 54 48 20 26 |AX_WORD_|LENGTH &|
|000009e0| 26 20 6c 65 6e 20 3e 3d | 20 4d 49 4e 5f 57 4f 52 |& len >=| MIN_WOR|
|000009f0| 44 5f 4c 45 4e 47 54 48 | 29 0a 20 20 20 20 7b 0a |D_LENGTH|). {.|
|00000a00| 20 20 20 20 20 20 72 65 | 67 69 73 74 65 72 20 69 | re|gister i|
|00000a10| 6e 74 20 6b 65 79 20 3d | 20 25 73 20 28 73 74 72 |nt key =| %s (str|
|00000a20| 2c 20 6c 65 6e 29 3b 0a | 0a 20 20 20 20 20 20 69 |, len);.|. i|
|00000a30| 66 20 28 6b 65 79 20 3c | 3d 20 4d 41 58 5f 48 41 |f (key <|= MAX_HA|
|00000a40| 53 48 5f 56 41 4c 55 45 | 20 26 26 20 6b 65 79 20 |SH_VALUE| && key |
|00000a50| 3e 3d 20 4d 49 4e 5f 48 | 41 53 48 5f 56 41 4c 55 |>= MIN_H|ASH_VALU|
|00000a60| 45 29 0a 20 20 20 20 20 | 20 20 20 7b 0a 00 20 20 |E). | {.. |
|00000a70| 20 20 20 20 20 20 20 20 | 25 73 25 73 20 2a 72 65 | |%s%s *re|
|00000a80| 73 77 6f 72 64 3b 20 25 | 73 0a 0a 20 20 20 20 20 |sword; %|s.. |
|00000a90| 20 20 20 20 20 73 77 69 | 74 63 68 20 28 6b 65 79 | swi|tch (key|
|00000aa0| 29 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 7b 0a |). | {.|
|00000ab0| 00 00 63 6f 6e 73 74 20 | 00 00 63 68 61 72 00 00 |..const |..char..|
|00000ac0| 69 6e 74 20 6b 65 79 5f | 6c 65 6e 3b 00 00 20 20 |int key_|len;.. |
|00000ad0| 20 20 20 20 20 20 20 20 | 20 20 63 61 73 65 20 25 | | case %|
|00000ae0| 2a 64 3a 0a 00 00 20 20 | 20 20 20 20 20 20 20 20 |*d:... | |
|00000af0| 20 20 20 20 72 65 73 77 | 6f 72 64 20 3d 20 26 77 | resw|ord = &w|
|00000b00| 6f 72 64 6c 69 73 74 5b | 25 64 5d 3b 0a 00 20 20 |ordlist[|%d];.. |
|00000b10| 20 20 20 20 20 20 20 20 | 20 20 20 20 72 65 73 77 | | resw|
|00000b20| 6f 72 64 20 3d 20 22 25 | 73 22 3b 0a 00 00 20 20 |ord = "%|s";... |
|00000b30| 20 20 20 20 20 20 20 20 | 20 20 20 20 69 66 20 28 | | if (|
|00000b40| 25 73 29 20 72 65 74 75 | 72 6e 20 72 65 73 77 6f |%s) retu|rn reswo|
|00000b50| 72 64 3b 0a 00 00 20 20 | 20 20 20 20 20 20 20 20 |rd;... | |
|00000b60| 20 20 20 20 72 65 74 75 | 72 6e 20 30 3b 0a 00 00 | retu|rn 0;...|
|00000b70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 72 65 | | re|
|00000b80| 73 77 6f 72 64 20 3d 20 | 26 77 6f 72 64 6c 69 73 |sword = |&wordlis|
|00000b90| 74 5b 25 64 5d 3b 0a 00 | 20 20 20 20 20 20 20 20 |t[%d];..| |
|00000ba0| 20 20 20 20 20 20 72 65 | 73 77 6f 72 64 20 3d 20 | re|sword = |
|00000bb0| 22 25 73 22 3b 0a 00 00 | 20 20 20 20 20 20 20 20 |"%s";...| |
|00000bc0| 20 20 20 20 20 20 69 66 | 20 28 25 73 29 20 72 65 | if| (%s) re|
|00000bd0| 74 75 72 6e 20 72 65 73 | 77 6f 72 64 3b 0a 00 00 |turn res|word;...|
|00000be0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 72 65 | | re|
|00000bf0| 73 77 6f 72 64 20 3d 20 | 26 77 6f 72 64 6c 69 73 |sword = |&wordlis|
|00000c00| 74 5b 25 64 5d 3b 0a 00 | 20 20 20 20 20 20 20 20 |t[%d];..| |
|00000c10| 20 20 20 20 20 20 72 65 | 73 77 6f 72 64 20 3d 20 | re|sword = |
|00000c20| 22 25 73 22 3b 0a 00 00 | 20 20 20 20 20 20 20 20 |"%s";...| |
|00000c30| 20 20 20 20 20 20 72 65 | 74 75 72 6e 20 25 73 20 | re|turn %s |
|00000c40| 3f 20 72 65 73 77 6f 72 | 64 20 3a 20 30 3b 0a 00 |? reswor|d : 0;..|
|00000c50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 72 65 | | re|
|00000c60| 73 77 6f 72 64 20 3d 20 | 26 77 6f 72 64 6c 69 73 |sword = |&wordlis|
|00000c70| 74 5b 25 64 5d 3b 00 00 | 20 20 20 20 20 20 20 20 |t[%d];..| |
|00000c80| 20 20 20 20 20 20 72 65 | 73 77 6f 72 64 20 3d 20 | re|sword = |
|00000c90| 22 25 73 22 3b 00 20 6b | 65 79 5f 6c 65 6e 20 3d |"%s";. k|ey_len =|
|00000ca0| 20 25 64 3b 00 00 20 62 | 72 65 61 6b 3b 0a 00 00 | %d;.. b|reak;...|
|00000cb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 64 65 66 61 | | defa|
|00000cc0| 75 6c 74 3a 20 72 65 74 | 75 72 6e 20 30 3b 0a 20 |ult: ret|urn 0;. |
|00000cd0| 20 20 20 20 20 20 20 20 | 20 20 20 7d 0a 00 20 20 | | }.. |
|00000ce0| 20 20 20 20 20 20 20 20 | 69 66 20 28 6c 65 6e 20 | |if (len |
|00000cf0| 3d 3d 20 6b 65 79 5f 6c | 65 6e 20 26 26 20 25 73 |== key_l|en && %s|
|00000d00| 29 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 72 65 |). | re|
|00000d10| 74 75 72 6e 20 72 65 73 | 77 6f 72 64 3b 0a 00 00 |turn res|word;...|
|00000d20| 20 20 20 20 20 20 20 20 | 20 20 69 66 20 28 25 73 | | if (%s|
|00000d30| 29 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 72 65 |). | re|
|00000d40| 74 75 72 6e 20 72 65 73 | 77 6f 72 64 3b 0a 00 00 |turn res|word;...|
|00000d50| 20 20 20 20 20 20 7d 0a | 20 20 7d 0a 20 20 72 65 | }.| }. re|
|00000d60| 74 75 72 6e 20 30 3b 0a | 7d 0a 00 00 20 20 20 20 |turn 0;.|}... |
|00000d70| 20 20 20 20 20 20 63 68 | 61 72 20 2a 73 20 3d 20 | ch|ar *s = |
|00000d80| 22 22 3b 0a 0a 20 20 20 | 20 20 20 20 20 20 20 73 |"";.. | s|
|00000d90| 77 69 74 63 68 20 28 6b | 65 79 29 0a 20 20 20 20 |witch (k|ey). |
|00000da0| 20 20 20 20 20 20 20 20 | 7b 0a 00 00 20 20 20 20 | |{... |
|00000db0| 20 20 20 20 20 20 20 20 | 63 61 73 65 20 25 2a 64 | |case %*d|
|00000dc0| 3a 20 69 66 20 28 6c 65 | 6e 20 3d 3d 20 25 64 29 |: if (le|n == %d)|
|00000dd0| 20 73 20 3d 20 22 25 73 | 22 3b 20 65 6c 73 65 20 | s = "%s|"; else |
|00000de0| 72 65 74 75 72 6e 20 30 | 3b 20 62 72 65 61 6b 3b |return 0|; break;|
|00000df0| 0a 00 20 20 20 20 20 20 | 20 20 20 20 20 20 63 61 |.. | ca|
|00000e00| 73 65 20 25 2a 64 3a 20 | 73 20 3d 20 22 25 73 22 |se %*d: |s = "%s"|
|00000e10| 3b 20 62 72 65 61 6b 3b | 0a 00 20 20 20 20 20 20 |; break;|.. |
|00000e20| 20 20 20 20 20 20 64 65 | 66 61 75 6c 74 3a 20 72 | de|fault: r|
|00000e30| 65 74 75 72 6e 20 30 3b | 0a 20 20 20 20 20 20 20 |eturn 0;|. |
|00000e40| 20 20 20 20 20 7d 0a 20 | 20 20 20 20 20 20 20 20 | }. | |
|00000e50| 20 72 65 74 75 72 6e 20 | 2a 73 20 3d 3d 20 2a 73 | return |*s == *s|
|00000e60| 74 72 20 26 26 20 21 25 | 73 3b 0a 20 20 20 20 20 |tr && !%|s;. |
|00000e70| 20 20 20 7d 0a 20 20 20 | 20 7d 0a 20 20 72 65 74 | }. | }. ret|
|00000e80| 75 72 6e 20 30 3b 0a 7d | 0a 00 73 74 72 6e 63 6d |urn 0;.}|..strncm|
|00000e90| 70 20 28 73 20 2b 20 31 | 2c 20 73 74 72 20 2b 20 |p (s + 1|, str + |
|00000ea0| 31 2c 20 6c 65 6e 20 2d | 20 31 29 00 73 74 72 63 |1, len -| 1).strc|
|00000eb0| 6d 70 20 28 73 20 2b 20 | 31 2c 20 73 74 72 20 2b |mp (s + |1, str +|
|00000ec0| 20 31 29 00 00 00 20 20 | 00 00 0a 25 73 73 74 61 | 1)... |...%ssta|
|00000ed0| 74 69 63 20 25 73 75 6e | 73 69 67 6e 65 64 20 25 |tic %sun|signed %|
|00000ee0| 73 20 6c 65 6e 67 74 68 | 74 61 62 6c 65 5b 5d 20 |s length|table[] |
|00000ef0| 3d 0a 25 73 25 73 7b 0a | 20 20 20 20 00 00 63 6f |=.%s%s{.| ..co|
|00000f00| 6e 73 74 20 00 00 63 68 | 61 72 00 00 73 68 6f 72 |nst ..ch|ar..shor|
|00000f10| 74 00 6c 6f 6e 67 00 00 | 25 33 64 25 73 00 2c 00 |t.long..|%3d%s.,.|
|00000f20| 2c 0a 20 20 20 20 00 00 | 25 33 64 25 73 00 2c 00 |,. ..|%3d%s.,.|
|00000f30| 2c 0a 20 20 20 20 00 00 | 0a 25 73 25 73 7d 3b 0a |,. ..|.%s%s};.|
|00000f40| 0a 00 7b 00 00 00 7d 2c | 00 00 20 20 00 00 0a 25 |..{...},|.. ...%|
|00000f50| 73 73 74 61 74 69 63 20 | 25 73 25 73 20 77 6f 72 |sstatic |%s%s wor|
|00000f60| 64 6c 69 73 74 5b 5d 20 | 3d 0a 25 73 25 73 7b 0a |dlist[] |=.%s%s{.|
|00000f70| 00 00 63 6f 6e 73 74 20 | 00 00 20 20 20 20 20 20 |..const |.. |
|00000f80| 00 00 25 73 22 22 2c 25 | 73 20 25 73 00 00 0a 20 |..%s"",%|s %s... |
|00000f90| 20 20 20 20 20 00 0a 00 | 25 73 22 25 73 22 2c 20 | ...|%s"%s", |
|00000fa0| 25 73 25 73 0a 00 20 20 | 20 20 20 20 25 73 22 25 |%s%s.. | %s"%|
|00000fb0| 73 22 2c 20 25 73 25 73 | 0a 00 20 20 20 20 20 20 |s", %s%s|.. |
|00000fc0| 25 73 22 25 73 22 2c 20 | 25 73 25 73 0a 00 25 73 |%s"%s", |%s%s..%s|
|00000fd0| 25 73 7d 3b 0a 0a 00 00 | 23 69 66 64 65 66 20 5f |%s};....|#ifdef _|
|00000fe0| 5f 47 4e 55 43 5f 5f 0a | 69 6e 6c 69 6e 65 0a 23 |_GNUC__.|inline.#|
|00000ff0| 65 6e 64 69 66 0a 00 00 | 73 74 61 74 69 63 20 69 |endif...|static i|
|00001000| 6e 74 0a 25 73 20 28 72 | 65 67 69 73 74 65 72 20 |nt.%s (r|egister |
|00001010| 63 6f 6e 73 74 20 63 68 | 61 72 20 2a 73 74 72 2c |const ch|ar *str,|
|00001020| 20 72 65 67 69 73 74 65 | 72 20 69 6e 74 20 6c 65 | registe|r int le|
|00001030| 6e 29 0a 7b 0a 20 20 73 | 74 61 74 69 63 20 25 73 |n).{. s|tatic %s|
|00001040| 75 6e 73 69 67 6e 65 64 | 20 25 73 20 68 61 73 68 |unsigned| %s hash|
|00001050| 5f 74 61 62 6c 65 5b 5d | 20 3d 0a 20 20 20 20 7b |_table[]| =. {|
|00001060| 00 00 73 74 61 74 69 63 | 20 69 6e 74 0a 25 73 20 |..static| int.%s |
|00001070| 28 73 74 72 2c 20 6c 65 | 6e 29 0a 20 20 20 20 20 |(str, le|n). |
|00001080| 72 65 67 69 73 74 65 72 | 20 63 68 61 72 20 2a 73 |register| char *s|
|00001090| 74 72 3b 0a 20 20 20 20 | 20 72 65 67 69 73 74 65 |tr;. | registe|
|000010a0| 72 20 75 6e 73 69 67 6e | 65 64 20 69 6e 74 20 20 |r unsign|ed int |
|000010b0| 6c 65 6e 3b 0a 7b 0a 20 | 20 73 74 61 74 69 63 20 |len;.{. | static |
|000010c0| 25 73 75 6e 73 69 67 6e | 65 64 20 25 73 20 68 61 |%sunsign|ed %s ha|
|000010d0| 73 68 5f 74 61 62 6c 65 | 5b 5d 20 3d 0a 20 20 20 |sh_table|[] =. |
|000010e0| 20 7b 00 00 63 6f 6e 73 | 74 20 00 00 63 68 61 72 | {..cons|t ..char|
|000010f0| 00 00 73 68 6f 72 74 00 | 69 6e 74 00 0a 20 20 20 |..short.|int.. |
|00001100| 20 00 25 2a 64 2c 00 00 | 0a 20 20 20 20 7d 3b 0a | .%*d,..|. };.|
|00001110| 20 20 72 65 74 75 72 6e | 20 25 73 20 2b 20 68 61 | return| %s + ha|
|00001120| 73 68 5f 74 61 62 6c 65 | 5b 73 74 72 5b 6c 65 6e |sh_table|[str[len|
|00001130| 20 2d 20 31 5d 5d 20 2b | 20 68 61 73 68 5f 74 61 | - 1]] +| hash_ta|
|00001140| 62 6c 65 5b 73 74 72 5b | 30 5d 5d 3b 0a 7d 0a 0a |ble[str[|0]];.}..|
|00001150| 00 00 30 00 6c 65 6e 00 | 0a 20 20 7d 3b 0a 20 20 |..0.len.|. };. |
|00001160| 72 65 74 75 72 6e 20 25 | 73 00 30 00 6c 65 6e 00 |return %|s.0.len.|
|00001170| 20 2b 20 68 61 73 68 5f | 74 61 62 6c 65 5b 73 74 | + hash_|table[st|
|00001180| 72 5b 25 64 5d 5d 00 00 | 25 73 3b 0a 7d 0a 0a 00 |r[%d]]..|%s;.}...|
|00001190| 20 2b 20 68 61 73 68 5f | 74 61 62 6c 65 5b 73 74 | + hash_|table[st|
|000011a0| 72 5b 6c 65 6e 20 2d 20 | 31 5d 5d 00 00 00 0a 20 |r[len - |1]].... |
|000011b0| 20 20 20 7d 3b 0a 20 20 | 72 65 67 69 73 74 65 72 | };. |register|
|000011c0| 20 69 6e 74 20 68 76 61 | 6c 20 3d 20 25 73 20 3b | int hva|l = %s ;|
|000011d0| 0a 0a 20 20 73 77 69 74 | 63 68 20 28 25 73 29 0a |.. swit|ch (%s).|
|000011e0| 20 20 20 20 7b 0a 20 20 | 20 20 20 20 64 65 66 61 | {. | defa|
|000011f0| 75 6c 74 3a 0a 00 30 00 | 6c 65 6e 00 6c 65 6e 00 |ult:..0.|len.len.|
|00001200| 68 76 61 6c 00 00 20 20 | 20 20 20 20 63 61 73 65 |hval.. | case|
|00001210| 20 25 64 3a 0a 20 20 20 | 20 20 20 20 20 68 76 61 | %d:. | hva|
|00001220| 6c 20 2b 3d 20 68 61 73 | 68 5f 74 61 62 6c 65 5b |l += has|h_table[|
|00001230| 73 74 72 5b 25 64 5d 5d | 3b 0a 00 00 20 20 20 20 |str[%d]]|;... |
|00001240| 7d 0a 20 20 72 65 74 75 | 72 6e 20 68 76 61 6c 3b |}. retu|rn hval;|
|00001250| 0a 7d 0a 0a 00 00 20 20 | 20 20 20 20 63 61 73 65 |.}.... | case|
|00001260| 20 25 64 3a 0a 00 20 20 | 20 20 20 20 63 61 73 65 | %d:.. | case|
|00001270| 20 25 64 3a 0a 20 20 20 | 20 20 20 20 20 68 76 61 | %d:. | hva|
|00001280| 6c 20 2b 3d 20 68 61 73 | 68 5f 74 61 62 6c 65 5b |l += has|h_table[|
|00001290| 73 74 72 5b 25 64 5d 5d | 3b 0a 00 00 20 20 20 20 |str[%d]]|;... |
|000012a0| 7d 0a 20 20 72 65 74 75 | 72 6e 20 68 76 61 6c 25 |}. retu|rn hval%|
|000012b0| 73 20 3b 0a 7d 0a 0a 00 | 20 2b 20 68 61 73 68 5f |s ;.}...| + hash_|
|000012c0| 74 61 62 6c 65 5b 73 74 | 72 5b 6c 65 6e 20 2d 20 |table[st|r[len - |
|000012d0| 31 5d 5d 00 00 00 20 20 | 69 66 20 28 6c 65 6e 20 |1]]... |if (len |
|000012e0| 3c 3d 20 4d 41 58 5f 57 | 4f 52 44 5f 4c 45 4e 47 |<= MAX_W|ORD_LENG|
|000012f0| 54 48 20 26 26 20 6c 65 | 6e 20 3e 3d 20 4d 49 4e |TH && le|n >= MIN|
|00001300| 5f 57 4f 52 44 5f 4c 45 | 4e 47 54 48 29 0a 20 20 |_WORD_LE|NGTH). |
|00001310| 20 20 7b 0a 20 20 20 20 | 20 20 72 65 67 69 73 74 | {. | regist|
|00001320| 65 72 20 69 6e 74 20 6b | 65 79 20 3d 20 25 73 20 |er int k|ey = %s |
|00001330| 28 73 74 72 2c 20 6c 65 | 6e 29 3b 0a 0a 20 20 20 |(str, le|n);.. |
|00001340| 20 20 20 69 66 20 28 6b | 65 79 20 3c 3d 20 4d 41 | if (k|ey <= MA|
|00001350| 58 5f 48 41 53 48 5f 56 | 41 4c 55 45 20 26 26 20 |X_HASH_V|ALUE && |
|00001360| 6b 65 79 20 3e 3d 20 4d | 49 4e 5f 48 41 53 48 5f |key >= M|IN_HASH_|
|00001370| 56 41 4c 55 45 29 0a 20 | 20 20 20 20 20 20 20 7b |VALUE). | {|
|00001380| 0a 20 20 20 20 20 20 20 | 20 20 20 72 65 67 69 73 |. | regis|
|00001390| 74 65 72 20 25 73 63 68 | 61 72 20 2a 73 20 3d 20 |ter %sch|ar *s = |
|000013a0| 77 6f 72 64 6c 69 73 74 | 5b 6b 65 79 5d 00 63 6f |wordlist|[key].co|
|000013b0| 6e 73 74 20 00 00 2e 25 | 73 00 3b 0a 0a 20 20 20 |nst ...%|s.;.. |
|000013c0| 20 20 20 20 20 20 20 69 | 66 20 28 25 73 2a 73 20 | i|f (%s*s |
|000013d0| 3d 3d 20 2a 73 74 72 20 | 26 26 20 21 25 73 29 0a |== *str |&& !%s).|
|000013e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 72 65 74 75 | | retu|
|000013f0| 72 6e 20 25 73 00 6c 65 | 6e 20 3d 3d 20 6c 65 6e |rn %s.le|n == len|
|00001400| 67 74 68 74 61 62 6c 65 | 5b 6b 65 79 5d 0a 20 20 |gthtable|[key]. |
|00001410| 20 20 20 20 20 20 20 20 | 20 20 20 20 26 26 20 00 | | && .|
|00001420| 00 00 73 74 72 6e 63 6d | 70 20 28 73 74 72 20 2b |..strncm|p (str +|
|00001430| 20 31 2c 20 73 20 2b 20 | 31 2c 20 6c 65 6e 20 2d | 1, s + |1, len -|
|00001440| 20 31 29 00 73 74 72 63 | 6d 70 20 28 73 74 72 20 | 1).strc|mp (str |
|00001450| 2b 20 31 2c 20 73 20 2b | 20 31 29 00 26 77 6f 72 |+ 1, s +| 1).&wor|
|00001460| 64 6c 69 73 74 5b 6b 65 | 79 5d 00 00 73 00 3b 0a |dlist[ke|y]..s.;.|
|00001470| 20 20 20 20 20 20 20 20 | 7d 0a 20 20 20 20 7d 0a | |}. }.|
|00001480| 20 20 72 65 74 75 72 6e | 20 30 3b 0a 7d 0a 00 00 | return| 0;.}...|
|00001490| 2f 2a 20 43 20 63 6f 64 | 65 20 70 72 6f 64 75 63 |/* C cod|e produc|
|000014a0| 65 64 20 62 79 20 67 70 | 65 72 66 20 76 65 72 73 |ed by gp|erf vers|
|000014b0| 69 6f 6e 20 25 73 20 2a | 2f 0a 00 00 25 73 0a 00 |ion %s *|/...%s..|
|000014c0| 25 73 3b 0a 00 00 23 69 | 66 64 65 66 20 5f 5f 47 |%s;...#i|fdef __G|
|000014d0| 4e 55 43 5f 5f 0a 69 6e | 6c 69 6e 65 0a 23 65 6e |NUC__.in|line.#en|
|000014e0| 64 69 66 0a 00 00 25 73 | 25 73 0a 25 73 20 28 72 |dif...%s|%s.%s (r|
|000014f0| 65 67 69 73 74 65 72 20 | 63 6f 6e 73 74 20 63 68 |egister |const ch|
|00001500| 61 72 20 2a 73 74 72 2c | 20 72 65 67 69 73 74 65 |ar *str,| registe|
|00001510| 72 20 69 6e 74 20 6c 65 | 6e 29 0a 7b 0a 00 25 73 |r int le|n).{..%s|
|00001520| 25 73 0a 25 73 20 28 73 | 74 72 2c 20 6c 65 6e 29 |%s.%s (s|tr, len)|
|00001530| 0a 20 20 20 20 20 72 65 | 67 69 73 74 65 72 20 63 |. re|gister c|
|00001540| 68 61 72 20 2a 73 74 72 | 3b 0a 20 20 20 20 20 72 |har *str|;. r|
|00001550| 65 67 69 73 74 65 72 20 | 75 6e 73 69 67 6e 65 64 |egister |unsigned|
|00001560| 20 69 6e 74 20 6c 65 6e | 3b 0a 7b 0a 00 00 63 6f | int len|;.{...co|
|00001570| 6e 73 74 20 00 00 0a 4c | 69 73 74 20 63 6f 6e 74 |nst ...L|ist cont|
|00001580| 65 6e 74 73 20 61 72 65 | 3a 0a 28 68 61 73 68 20 |ents are|:.(hash |
|00001590| 76 61 6c 75 65 2c 20 6b | 65 79 20 6c 65 6e 67 74 |value, k|ey lengt|
|000015a0| 68 2c 20 69 6e 64 65 78 | 2c 20 6b 65 79 20 73 65 |h, index|, key se|
|000015b0| 74 2c 20 75 6e 69 71 20 | 73 65 74 2c 20 6b 65 79 |t, uniq |set, key|
|000015c0| 29 3a 0a 00 20 20 20 20 | 20 20 25 64 2c 20 20 20 |):.. | %d, |
|000015d0| 20 20 20 25 64 2c 20 20 | 20 20 20 25 64 2c 20 25 | %d, | %d, %|
|000015e0| 73 2c 20 25 73 2c 20 25 | 73 0a 00 00 0a 44 75 6d |s, %s, %|s....Dum|
|000015f0| 70 69 6e 67 20 6b 65 79 | 20 6c 69 73 74 20 69 6e |ping key| list in|
|00001600| 66 6f 72 6d 61 74 69 6f | 6e 3a 0a 74 6f 74 61 6c |formatio|n:.total|
|00001610| 20 75 6e 69 71 75 65 20 | 6b 65 79 77 6f 72 64 73 | unique |keywords|
|00001620| 20 3d 20 25 64 0a 74 6f | 74 61 6c 20 6b 65 79 77 | = %d.to|tal keyw|
|00001630| 6f 72 64 73 20 3d 20 25 | 64 0a 6d 61 78 69 6d 75 |ords = %|d.maximu|
|00001640| 6d 20 6b 65 79 20 6c 65 | 6e 67 74 68 20 3d 20 25 |m key le|ngth = %|
|00001650| 64 2e 0a 00 45 6e 64 20 | 64 75 6d 70 69 6e 67 20 |d...End |dumping |
|00001660| 6c 69 73 74 2e 0a 0a 00 | 00 00 75 73 61 67 65 3a |list....|..usage:|
|00001670| 20 25 6e 20 5b 2d 61 63 | 43 64 44 66 5b 6e 75 6d | %n [-ac|CdDf[num|
|00001680| 5d 67 47 68 48 3c 68 61 | 73 68 6e 61 6d 65 3e 69 |]gGhH<ha|shname>i|
|00001690| 3c 69 6e 69 74 3e 6a 6b | 3c 6b 65 79 73 3e 4b 3c |<init>jk|<keys>K<|
|000016a0| 6b 65 79 6e 61 6d 65 3e | 6c 6e 4e 3c 6e 61 6d 65 |keyname>|lnN<name|
|000016b0| 3e 6f 70 72 73 3c 73 69 | 7a 65 3e 53 74 54 76 5d |>oprs<si|ze>StTv]|
|000016c0| 2e 0a 28 74 79 70 65 20 | 25 6e 20 2d 68 20 66 6f |..(type |%n -h fo|
|000016d0| 72 20 68 65 6c 70 29 0a | 00 00 0a 64 75 6d 70 69 |r help).|...dumpi|
|000016e0| 6e 67 20 4f 70 74 69 6f | 6e 73 3a 0a 44 45 42 55 |ng Optio|ns:.DEBU|
|000016f0| 47 20 69 73 2e 2e 2e 2e | 2e 2e 2e 3a 20 25 73 0a |G is....|...: %s.|
|00001700| 4f 52 44 45 52 20 69 73 | 2e 2e 2e 2e 2e 2e 2e 3a |ORDER is|.......:|
|00001710| 20 25 73 0a 41 4e 53 49 | 20 69 73 2e 2e 2e 2e 2e | %s.ANSI| is.....|
|00001720| 2e 2e 2e 3a 20 25 73 0a | 54 59 50 45 20 69 73 2e |...: %s.|TYPE is.|
|00001730| 2e 2e 2e 2e 2e 2e 2e 3a | 20 25 73 0a 47 4e 55 20 |.......:| %s.GNU |
|00001740| 69 73 2e 2e 2e 2e 2e 2e | 2e 2e 2e 3a 20 25 73 0a |is......|...: %s.|
|00001750| 52 41 4e 44 4f 4d 20 69 | 73 2e 2e 2e 2e 2e 2e 3a |RANDOM i|s......:|
|00001760| 20 25 73 0a 44 45 46 41 | 55 4c 54 43 48 41 52 53 | %s.DEFA|ULTCHARS|
|00001770| 20 69 73 3a 20 25 73 0a | 53 57 49 54 43 48 20 69 | is: %s.|SWITCH i|
|00001780| 73 2e 2e 2e 2e 2e 2e 3a | 20 25 73 0a 50 4f 49 4e |s......:| %s.POIN|
|00001790| 54 45 52 20 69 73 2e 2e | 2e 2e 2e 3a 20 25 73 0a |TER is..|...: %s.|
|000017a0| 4e 4f 4c 45 4e 47 54 48 | 20 69 73 2e 2e 2e 2e 3a |NOLENGTH| is....:|
|000017b0| 20 25 73 0a 4c 45 4e 54 | 41 42 4c 45 20 69 73 2e | %s.LENT|ABLE is.|
|000017c0| 2e 2e 2e 3a 20 25 73 0a | 44 55 50 20 69 73 2e 2e |...: %s.|DUP is..|
|000017d0| 2e 2e 2e 2e 2e 2e 2e 3a | 20 25 73 0a 43 4f 4d 50 |.......:| %s.COMP|
|000017e0| 20 69 73 2e 2e 2e 2e 2e | 2e 2e 2e 3a 20 25 73 0a | is.....|...: %s.|
|000017f0| 46 41 53 54 20 69 73 2e | 2e 2e 2e 2e 2e 2e 2e 3a |FAST is.|.......:|
|00001800| 20 25 73 0a 4e 4f 54 59 | 50 45 20 69 73 2e 2e 2e | %s.NOTY|PE is...|
|00001810| 2e 3a 20 25 73 0a 47 4c | 4f 42 41 4c 20 69 73 2e |.: %s.GL|OBAL is.|
|00001820| 2e 2e 2e 2e 2e 2e 2e 2e | 3a 20 25 73 0a 43 4f 4e |........|: %s.CON|
|00001830| 53 54 20 69 73 2e 2e 2e | 2e 2e 2e 2e 2e 2e 3a 20 |ST is...|......: |
|00001840| 25 73 0a 69 74 65 72 61 | 74 69 6f 6e 73 20 3d 20 |%s.itera|tions = |
|00001850| 25 64 0a 6c 6f 6f 6b 75 | 70 20 66 75 6e 63 74 69 |%d.looku|p functi|
|00001860| 6f 6e 20 6e 61 6d 65 20 | 3d 20 25 73 0a 68 61 73 |on name |= %s.has|
|00001870| 68 20 66 75 6e 63 74 69 | 6f 6e 20 6e 61 6d 65 20 |h functi|on name |
|00001880| 3d 20 25 73 0a 6b 65 79 | 20 6e 61 6d 65 20 3d 20 |= %s.key| name = |
|00001890| 25 73 0a 6a 75 6d 70 20 | 76 61 6c 75 65 20 3d 20 |%s.jump |value = |
|000018a0| 25 64 0a 6d 61 78 20 61 | 73 73 6f 63 69 63 61 74 |%d.max a|ssocicat|
|000018b0| 65 64 20 76 61 6c 75 65 | 20 3d 20 25 64 0a 69 6e |ed value| = %d.in|
|000018c0| 69 74 69 61 6c 20 61 73 | 73 6f 63 69 61 74 65 64 |itial as|sociated|
|000018d0| 20 76 61 6c 75 65 20 3d | 20 25 64 0a 00 00 65 6e | value =| %d...en|
|000018e0| 61 62 6c 65 64 00 64 69 | 73 61 62 6c 65 64 00 00 |abled.di|sabled..|
|000018f0| 65 6e 61 62 6c 65 64 00 | 64 69 73 61 62 6c 65 64 |enabled.|disabled|
|00001900| 00 00 65 6e 61 62 6c 65 | 64 00 64 69 73 61 62 6c |..enable|d.disabl|
|00001910| 65 64 00 00 65 6e 61 62 | 6c 65 64 00 64 69 73 61 |ed..enab|led.disa|
|00001920| 62 6c 65 64 00 00 65 6e | 61 62 6c 65 64 00 64 69 |bled..en|abled.di|
|00001930| 73 61 62 6c 65 64 00 00 | 65 6e 61 62 6c 65 64 00 |sabled..|enabled.|
|00001940| 64 69 73 61 62 6c 65 64 | 00 00 65 6e 61 62 6c 65 |disabled|..enable|
|00001950| 64 00 64 69 73 61 62 6c | 65 64 00 00 65 6e 61 62 |d.disabl|ed..enab|
|00001960| 6c 65 64 00 64 69 73 61 | 62 6c 65 64 00 00 65 6e |led.disa|bled..en|
|00001970| 61 62 6c 65 64 00 64 69 | 73 61 62 6c 65 64 00 00 |abled.di|sabled..|
|00001980| 65 6e 61 62 6c 65 64 00 | 64 69 73 61 62 6c 65 64 |enabled.|disabled|
|00001990| 00 00 65 6e 61 62 6c 65 | 64 00 64 69 73 61 62 6c |..enable|d.disabl|
|000019a0| 65 64 00 00 65 6e 61 62 | 6c 65 64 00 64 69 73 61 |ed..enab|led.disa|
|000019b0| 62 6c 65 64 00 00 65 6e | 61 62 6c 65 64 00 64 69 |bled..en|abled.di|
|000019c0| 73 61 62 6c 65 64 00 00 | 65 6e 61 62 6c 65 64 00 |sabled..|enabled.|
|000019d0| 64 69 73 61 62 6c 65 64 | 00 00 65 6e 61 62 6c 65 |disabled|..enable|
|000019e0| 64 00 64 69 73 61 62 6c | 65 64 00 00 65 6e 61 62 |d.disabl|ed..enab|
|000019f0| 6c 65 64 00 64 69 73 61 | 62 6c 65 64 00 00 65 6e |led.disa|bled..en|
|00001a00| 61 62 6c 65 64 00 64 69 | 73 61 62 6c 65 64 00 00 |abled.di|sabled..|
|00001a10| 61 6c 6c 20 63 68 61 72 | 61 63 74 65 72 73 20 61 |all char|acters a|
|00001a20| 72 65 20 75 73 65 64 20 | 69 6e 20 74 68 65 20 68 |re used |in the h|
|00001a30| 61 73 68 20 66 75 6e 63 | 74 69 6f 6e 0a 00 74 6f |ash func|tion..to|
|00001a40| 74 61 6c 20 6b 65 79 20 | 70 6f 73 69 74 69 6f 6e |tal key |position|
|00001a50| 73 20 3d 20 25 64 0a 6b | 65 79 20 70 6f 73 69 74 |s = %d.k|ey posit|
|00001a60| 69 6f 6e 73 20 61 72 65 | 3a 20 0a 00 24 0a 00 00 |ions are|: ..$...|
|00001a70| 25 64 0a 00 66 69 6e 69 | 73 68 65 64 20 64 75 6d |%d..fini|shed dum|
|00001a80| 70 69 6e 67 20 4f 70 74 | 69 6f 6e 73 0a 00 69 6e |ping Opt|ions..in|
|00001a90| 5f 77 6f 72 64 5f 73 65 | 74 00 68 61 73 68 00 00 |_word_se|t.hash..|
|00001aa0| 6e 61 6d 65 00 00 61 64 | 63 43 44 66 3a 67 47 68 |name..ad|cCDf:gGh|
|00001ab0| 48 3a 69 3a 6a 3a 6b 3a | 4b 3a 6c 6e 4e 3a 6f 70 |H:i:j:k:|K:lnN:op|
|00001ac0| 72 73 3a 53 74 54 76 00 | 73 74 61 72 74 69 6e 67 |rs:StTv.|starting|
|00001ad0| 20 70 72 6f 67 72 61 6d | 20 25 6e 2c 20 76 65 72 | program| %n, ver|
|00001ae0| 73 69 6f 6e 20 25 73 2c | 20 77 69 74 68 20 64 65 |sion %s,| with de|
|00001af0| 62 75 67 67 69 6e 67 20 | 6f 6e 2e 0a 00 00 69 74 |bugging |on....it|
|00001b00| 65 72 61 74 69 6f 6e 73 | 20 76 61 6c 75 65 20 6d |erations| value m|
|00001b10| 75 73 74 20 6e 6f 74 20 | 62 65 20 6e 65 67 61 74 |ust not |be negat|
|00001b20| 69 76 65 2c 20 61 73 73 | 75 6d 69 6e 67 20 30 0a |ive, ass|uming 0.|
|00001b30| 00 00 2d 61 09 47 65 6e | 65 72 61 74 65 20 41 4e |..-a.Gen|erate AN|
|00001b40| 53 49 20 73 74 61 6e 64 | 61 72 64 20 43 20 6f 75 |SI stand|ard C ou|
|00001b50| 74 70 75 74 20 63 6f 64 | 65 2c 20 69 2e 65 2e 2c |tput cod|e, i.e.,|
|00001b60| 20 66 75 6e 63 74 69 6f | 6e 20 70 72 6f 74 6f 74 | functio|n protot|
|00001b70| 79 70 65 73 2e 0a 2d 63 | 09 47 65 6e 65 72 61 74 |ypes..-c|.Generat|
|00001b80| 65 20 63 6f 6d 70 61 72 | 69 73 6f 6e 20 63 6f 64 |e compar|ison cod|
|00001b90| 65 20 75 73 69 6e 67 20 | 73 74 72 6e 63 6d 70 20 |e using |strncmp |
|00001ba0| 72 61 74 68 65 72 20 74 | 68 61 6e 20 73 74 72 63 |rather t|han strc|
|00001bb0| 6d 70 2e 0a 2d 43 09 4d | 61 6b 65 20 74 68 65 20 |mp..-C.M|ake the |
|00001bc0| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 20 67 65 6e 65 |contents| of gene|
|00001bd0| 72 61 74 65 64 20 6c 6f | 6f 6b 75 70 20 74 61 62 |rated lo|okup tab|
|00001be0| 6c 65 73 20 63 6f 6e 73 | 74 61 6e 74 2c 20 69 2e |les cons|tant, i.|
|00001bf0| 65 2e 2c 20 72 65 61 64 | 6f 6e 6c 79 2e 0a 2d 64 |e., read|only..-d|
|00001c00| 09 45 6e 61 62 6c 65 73 | 20 74 68 65 20 64 65 62 |.Enables| the deb|
|00001c10| 75 67 67 69 6e 67 20 6f | 70 74 69 6f 6e 20 28 70 |ugging o|ption (p|
|00001c20| 72 6f 64 75 63 65 73 20 | 76 65 72 62 6f 73 65 20 |roduces |verbose |
|00001c30| 6f 75 74 70 75 74 20 74 | 6f 20 53 74 64 5f 45 72 |output t|o Std_Er|
|00001c40| 72 29 2e 0a 2d 44 09 48 | 61 6e 64 6c 65 20 6b 65 |r)..-D.H|andle ke|
|00001c50| 79 77 6f 72 64 73 20 74 | 68 61 74 20 68 61 73 68 |ywords t|hat hash|
|00001c60| 20 74 6f 20 64 75 70 6c | 69 63 61 74 65 20 76 61 | to dupl|icate va|
|00001c70| 6c 75 65 73 2e 20 20 54 | 68 69 73 20 69 73 20 75 |lues. T|his is u|
|00001c80| 73 65 66 75 6c 0a 09 66 | 6f 72 20 63 65 72 74 61 |seful..f|or certa|
|00001c90| 69 6e 20 68 69 67 68 6c | 79 20 72 65 64 75 6e 64 |in highl|y redund|
|00001ca0| 61 6e 74 20 6b 65 79 77 | 6f 72 64 20 73 65 74 73 |ant keyw|ord sets|
|00001cb0| 2e 20 20 49 74 20 65 6e | 61 62 6c 65 73 20 74 68 |. It en|ables th|
|00001cc0| 65 20 2d 53 20 6f 70 74 | 69 6f 6e 2e 0a 2d 66 09 |e -S opt|ion..-f.|
|00001cd0| 47 65 6e 65 72 61 74 65 | 20 74 68 65 20 70 65 72 |Generate| the per|
|00001ce0| 66 65 63 74 20 68 61 73 | 68 20 66 75 6e 63 74 69 |fect has|h functi|
|00001cf0| 6f 6e 20 60 60 66 61 73 | 74 2e 27 27 20 20 54 68 |on ``fas|t.'' Th|
|00001d00| 69 73 20 64 65 63 72 65 | 61 73 65 73 20 47 50 45 |is decre|ases GPE|
|00001d10| 52 46 27 73 0a 09 72 75 | 6e 6e 69 6e 67 20 74 69 |RF's..ru|nning ti|
|00001d20| 6d 65 20 61 74 20 74 68 | 65 20 63 6f 73 74 20 6f |me at th|e cost o|
|00001d30| 66 20 6d 69 6e 69 6d 69 | 7a 69 6e 67 20 67 65 6e |f minimi|zing gen|
|00001d40| 65 72 61 74 65 64 20 74 | 61 62 6c 65 2d 73 69 7a |erated t|able-siz|
|00001d50| 65 2e 0a 09 54 68 65 20 | 6e 75 6d 65 72 69 63 20 |e...The |numeric |
|00001d60| 61 72 67 75 6d 65 6e 74 | 20 72 65 70 72 65 73 65 |argument| represe|
|00001d70| 6e 74 73 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |nts the |number o|
|00001d80| 66 20 74 69 6d 65 73 20 | 74 6f 20 69 74 65 72 61 |f times |to itera|
|00001d90| 74 65 20 77 68 65 6e 0a | 09 72 65 73 6f 6c 76 69 |te when.|.resolvi|
|00001da0| 6e 67 20 61 20 63 6f 6c | 6c 69 73 69 6f 6e 2e 20 |ng a col|lision. |
|00001db0| 20 60 30 27 20 6d 65 61 | 6e 73 20 60 60 69 74 65 | `0' mea|ns ``ite|
|00001dc0| 72 61 74 65 20 62 79 20 | 74 68 65 20 6e 75 6d 62 |rate by |the numb|
|00001dd0| 65 72 20 6f 66 20 6b 65 | 79 77 6f 72 64 73 27 27 |er of ke|ywords''|
|00001de0| 2e 0a 2d 67 09 41 73 73 | 75 6d 65 20 61 20 47 4e |..-g.Ass|ume a GN|
|00001df0| 55 20 63 6f 6d 70 69 6c | 65 72 2c 20 65 2e 67 2e |U compil|er, e.g.|
|00001e00| 2c 20 67 2b 2b 20 6f 72 | 20 67 63 63 2e 20 20 54 |, g++ or| gcc. T|
|00001e10| 68 69 73 20 6d 61 6b 65 | 73 20 61 6c 6c 20 67 65 |his make|s all ge|
|00001e20| 6e 65 72 61 74 65 64 0a | 09 72 6f 75 74 69 6e 65 |nerated.|.routine|
|00001e30| 73 20 75 73 65 20 74 68 | 65 20 60 60 69 6e 6c 69 |s use th|e ``inli|
|00001e40| 6e 65 27 27 20 6b 65 79 | 77 6f 72 64 20 74 6f 20 |ne'' key|word to |
|00001e50| 72 65 6d 6f 76 65 20 63 | 6f 73 74 20 6f 66 20 66 |remove c|ost of f|
|00001e60| 75 6e 63 74 69 6f 6e 20 | 63 61 6c 6c 73 2e 0a 2d |unction |calls..-|
|00001e70| 47 09 47 65 6e 65 72 61 | 74 65 20 74 68 65 20 73 |G.Genera|te the s|
|00001e80| 74 61 74 69 63 20 74 61 | 62 6c 65 20 6f 66 20 6b |tatic ta|ble of k|
|00001e90| 65 79 77 6f 72 64 73 20 | 61 73 20 61 20 73 74 61 |eywords |as a sta|
|00001ea0| 74 69 63 20 67 6c 6f 62 | 61 6c 20 76 61 72 69 61 |tic glob|al varia|
|00001eb0| 62 6c 65 2c 0a 09 72 61 | 74 68 65 72 20 74 68 61 |ble,..ra|ther tha|
|00001ec0| 6e 20 68 69 64 69 6e 67 | 20 69 74 20 69 6e 73 69 |n hiding| it insi|
|00001ed0| 64 65 20 6f 66 20 74 68 | 65 20 6c 6f 6f 6b 75 70 |de of th|e lookup|
|00001ee0| 20 66 75 6e 63 74 69 6f | 6e 20 28 77 68 69 63 68 | functio|n (which|
|00001ef0| 20 69 73 20 74 68 65 0a | 09 64 65 66 61 75 6c 74 | is the.|.default|
|00001f00| 20 62 65 68 61 76 69 6f | 72 29 2e 0a 2d 68 09 50 | behavio|r)..-h.P|
|00001f10| 72 69 6e 74 73 20 74 68 | 69 73 20 6d 65 73 61 67 |rints th|is mesag|
|00001f20| 65 2e 0a 2d 48 09 41 6c | 6c 6f 77 20 75 73 65 72 |e..-H.Al|low user|
|00001f30| 20 74 6f 20 73 70 65 63 | 69 66 79 20 6e 61 6d 65 | to spec|ify name|
|00001f40| 20 6f 66 20 67 65 6e 65 | 72 61 74 65 64 20 68 61 | of gene|rated ha|
|00001f50| 73 68 20 66 75 6e 63 74 | 69 6f 6e 2e 20 44 65 66 |sh funct|ion. Def|
|00001f60| 61 75 6c 74 0a 09 69 73 | 20 60 68 61 73 68 27 2e |ault..is| `hash'.|
|00001f70| 0a 2d 69 09 50 72 6f 76 | 69 64 65 20 61 6e 20 69 |.-i.Prov|ide an i|
|00001f80| 6e 69 74 69 61 6c 20 76 | 61 6c 75 65 20 66 6f 72 |nitial v|alue for|
|00001f90| 20 74 68 65 20 61 73 73 | 6f 63 69 61 74 65 20 76 | the ass|ociate v|
|00001fa0| 61 6c 75 65 73 20 61 72 | 72 61 79 2e 20 20 44 65 |alues ar|ray. De|
|00001fb0| 66 61 75 6c 74 20 69 73 | 20 30 2e 0a 09 53 65 74 |fault is| 0...Set|
|00001fc0| 74 69 6e 67 20 74 68 69 | 73 20 76 61 6c 75 65 20 |ting thi|s value |
|00001fd0| 6c 61 72 67 65 72 20 68 | 65 6c 70 73 20 69 6e 66 |larger h|elps inf|
|00001fe0| 6c 61 74 65 20 74 68 65 | 20 73 69 7a 65 20 6f 66 |late the| size of|
|00001ff0| 20 74 68 65 20 66 69 6e | 61 6c 20 74 61 62 6c 65 | the fin|al table|
|00002000| 2e 0a 2d 6a 09 41 66 66 | 65 63 74 73 20 74 68 65 |..-j.Aff|ects the|
|00002010| 20 60 60 6a 75 6d 70 20 | 76 61 6c 75 65 2c 27 27 | ``jump |value,''|
|00002020| 20 69 2e 65 2e 2c 20 68 | 6f 77 20 66 61 72 20 74 | i.e., h|ow far t|
|00002030| 6f 20 61 64 76 61 6e 63 | 65 20 74 68 65 20 61 73 |o advanc|e the as|
|00002040| 73 6f 63 69 61 74 65 64 | 0a 09 63 68 61 72 61 63 |sociated|..charac|
|00002050| 74 65 72 20 76 61 6c 75 | 65 20 75 70 6f 6e 20 63 |ter valu|e upon c|
|00002060| 6f 6c 6c 69 73 69 6f 6e | 73 2e 20 20 4d 75 73 74 |ollision|s. Must|
|00002070| 20 62 65 20 61 6e 20 6f | 64 64 20 6e 75 6d 62 65 | be an o|dd numbe|
|00002080| 72 2c 20 64 65 66 61 75 | 6c 74 20 69 73 20 25 64 |r, defau|lt is %d|
|00002090| 2e 0a 2d 6b 09 41 6c 6c | 6f 77 73 20 73 65 6c 65 |..-k.All|ows sele|
|000020a0| 63 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 6b 65 79 |ction of| the key|
|000020b0| 20 70 6f 73 69 74 69 6f | 6e 73 20 75 73 65 64 20 | positio|ns used |
|000020c0| 69 6e 20 74 68 65 20 68 | 61 73 68 20 66 75 6e 63 |in the h|ash func|
|000020d0| 74 69 6f 6e 2e 0a 09 54 | 68 65 20 61 6c 6c 6f 77 |tion...T|he allow|
|000020e0| 61 62 6c 65 20 63 68 6f | 69 63 65 73 20 72 61 6e |able cho|ices ran|
|000020f0| 67 65 20 62 65 74 77 65 | 65 6e 20 31 2d 25 64 2c |ge betwe|en 1-%d,|
|00002100| 20 69 6e 63 6c 75 73 69 | 76 65 2e 20 20 54 68 65 | inclusi|ve. The|
|00002110| 20 70 6f 73 69 74 69 6f | 6e 73 0a 09 61 72 65 20 | positio|ns..are |
|00002120| 73 65 70 61 72 61 74 65 | 64 20 62 79 20 63 6f 6d |separate|d by com|
|00002130| 6d 61 73 2c 20 72 61 6e | 67 65 73 20 6d 61 79 20 |mas, ran|ges may |
|00002140| 62 65 20 75 73 65 64 2c | 20 61 6e 64 20 6b 65 79 |be used,| and key|
|00002150| 20 70 6f 73 69 74 69 6f | 6e 73 20 6d 61 79 0a 09 | positio|ns may..|
|00002160| 6f 63 63 75 72 20 69 6e | 20 61 6e 79 20 6f 72 64 |occur in| any ord|
|00002170| 65 72 2e 20 20 41 6c 73 | 6f 2c 20 74 68 65 20 6d |er. Als|o, the m|
|00002180| 65 74 61 2d 63 68 61 72 | 61 63 74 65 72 20 27 2a |eta-char|acter '*|
|00002190| 27 20 63 61 75 73 65 73 | 20 74 68 65 20 67 65 6e |' causes| the gen|
|000021a0| 65 72 61 74 65 64 0a 09 | 68 61 73 68 20 66 75 6e |erated..|hash fun|
|000021b0| 63 74 69 6f 6e 20 74 6f | 20 63 6f 6e 73 69 64 65 |ction to| conside|
|000021c0| 72 20 41 4c 4c 20 6b 65 | 79 20 70 6f 73 69 74 69 |r ALL ke|y positi|
|000021d0| 6f 6e 73 2c 20 61 6e 64 | 20 24 20 69 6e 64 69 63 |ons, and| $ indic|
|000021e0| 61 74 65 73 20 74 68 65 | 0a 09 60 60 66 69 6e 61 |ates the|..``fina|
|000021f0| 6c 20 63 68 61 72 61 63 | 74 65 72 27 27 20 6f 66 |l charac|ter'' of|
|00002200| 20 61 20 6b 65 79 2c 20 | 65 2e 67 2e 2c 20 24 2c | a key, |e.g., $,|
|00002210| 31 2c 32 2c 34 2c 36 2d | 31 30 2e 0a 2d 4b 09 41 |1,2,4,6-|10..-K.A|
|00002220| 6c 6c 6f 77 20 75 73 65 | 72 20 74 6f 20 73 65 6c |llow use|r to sel|
|00002230| 65 63 74 20 6e 61 6d 65 | 20 6f 66 20 74 68 65 20 |ect name| of the |
|00002240| 6b 65 79 77 6f 72 64 20 | 63 6f 6d 70 6f 6e 65 6e |keyword |componen|
|00002250| 74 20 69 6e 20 74 68 65 | 20 6b 65 79 77 6f 72 64 |t in the| keyword|
|00002260| 20 73 74 72 75 63 74 75 | 72 65 2e 0a 2d 6c 09 43 | structu|re..-l.C|
|00002270| 6f 6d 70 61 72 65 20 6b | 65 79 20 6c 65 6e 67 74 |ompare k|ey lengt|
|00002280| 68 73 20 62 65 66 6f 72 | 65 20 74 72 79 69 6e 67 |hs befor|e trying|
|00002290| 20 61 20 73 74 72 69 6e | 67 20 63 6f 6d 70 61 72 | a strin|g compar|
|000022a0| 69 73 6f 6e 2e 20 20 54 | 68 69 73 20 68 65 6c 70 |ison. T|his help|
|000022b0| 73 0a 09 63 75 74 20 64 | 6f 77 6e 20 6f 6e 20 74 |s..cut d|own on t|
|000022c0| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 73 74 72 |he numbe|r of str|
|000022d0| 69 6e 67 20 63 6f 6d 70 | 61 72 69 73 6f 6e 73 20 |ing comp|arisons |
|000022e0| 6d 61 64 65 20 64 75 72 | 69 6e 67 20 74 68 65 20 |made dur|ing the |
|000022f0| 6c 6f 6f 6b 75 70 2e 0a | 2d 6e 09 44 6f 20 6e 6f |lookup..|-n.Do no|
|00002300| 74 20 69 6e 63 6c 75 64 | 65 20 74 68 65 20 6c 65 |t includ|e the le|
|00002310| 6e 67 74 68 20 6f 66 20 | 74 68 65 20 6b 65 79 77 |ngth of |the keyw|
|00002320| 6f 72 64 20 77 68 65 6e | 20 63 6f 6d 70 75 74 69 |ord when| computi|
|00002330| 6e 67 20 74 68 65 20 68 | 61 73 68 20 66 75 6e 63 |ng the h|ash func|
|00002340| 74 69 6f 6e 0a 2d 4e 09 | 41 6c 6c 6f 77 20 75 73 |tion.-N.|Allow us|
|00002350| 65 72 20 74 6f 20 73 70 | 65 63 69 66 79 20 6e 61 |er to sp|ecify na|
|00002360| 6d 65 20 6f 66 20 67 65 | 6e 65 72 61 74 65 64 20 |me of ge|nerated |
|00002370| 6c 6f 6f 6b 75 70 20 66 | 75 6e 63 74 69 6f 6e 2e |lookup f|unction.|
|00002380| 20 20 44 65 66 61 75 6c | 74 0a 09 6e 61 6d 65 20 | Defaul|t..name |
|00002390| 69 73 20 60 69 6e 5f 77 | 6f 72 64 5f 73 65 74 2e |is `in_w|ord_set.|
|000023a0| 27 0a 2d 6f 09 52 65 6f | 72 64 65 72 73 20 69 6e |'.-o.Reo|rders in|
|000023b0| 70 75 74 20 6b 65 79 73 | 20 62 79 20 66 72 65 71 |put keys| by freq|
|000023c0| 75 65 6e 63 79 20 6f 66 | 20 6f 63 63 75 72 72 65 |uency of| occurre|
|000023d0| 6e 63 65 20 6f 66 20 74 | 68 65 20 6b 65 79 20 73 |nce of t|he key s|
|000023e0| 65 74 73 2e 0a 09 54 68 | 69 73 20 73 68 6f 75 6c |ets...Th|is shoul|
|000023f0| 64 20 64 65 63 72 65 61 | 73 65 20 74 68 65 20 73 |d decrea|se the s|
|00002400| 65 61 72 63 68 20 74 69 | 6d 65 20 64 72 61 6d 61 |earch ti|me drama|
|00002410| 74 69 63 61 6c 6c 79 2e | 0a 2d 70 09 43 68 61 6e |tically.|.-p.Chan|
|00002420| 67 65 73 20 74 68 65 20 | 72 65 74 75 72 6e 20 76 |ges the |return v|
|00002430| 61 6c 75 65 20 6f 66 20 | 74 68 65 20 67 65 6e 65 |alue of |the gene|
|00002440| 72 61 74 65 64 20 66 75 | 6e 63 74 69 6f 6e 20 60 |rated fu|nction `|
|00002450| 60 69 6e 5f 77 6f 72 64 | 5f 73 65 74 27 27 0a 09 |`in_word|_set''..|
|00002460| 66 72 6f 6d 20 69 74 73 | 20 64 65 66 61 75 6c 74 |from its| default|
|00002470| 20 62 6f 6f 6c 65 61 6e | 20 76 61 6c 75 65 20 28 | boolean| value (|
|00002480| 69 2e 65 2e 2c 20 30 20 | 6f 72 20 31 29 2c 20 74 |i.e., 0 |or 1), t|
|00002490| 6f 20 74 79 70 65 20 60 | 60 70 6f 69 6e 74 65 72 |o type `|`pointer|
|000024a0| 0a 09 74 6f 20 77 6f 72 | 64 6c 69 73 74 20 61 72 |..to wor|dlist ar|
|000024b0| 72 61 79 27 27 20 20 54 | 68 69 73 20 69 73 20 6d |ray'' T|his is m|
|000024c0| 6f 73 74 20 75 73 65 66 | 75 6c 20 77 68 65 6e 20 |ost usef|ul when |
|000024d0| 74 68 65 20 2d 74 20 6f | 70 74 69 6f 6e 2c 20 61 |the -t o|ption, a|
|000024e0| 6c 6c 6f 77 69 6e 67 0a | 09 75 73 65 72 2d 64 65 |llowing.|.user-de|
|000024f0| 66 69 6e 65 64 20 73 74 | 72 75 63 74 73 2c 20 69 |fined st|ructs, i|
|00002500| 73 20 75 73 65 64 2e 0a | 2d 72 09 55 74 69 6c 69 |s used..|-r.Utili|
|00002510| 7a 65 73 20 72 61 6e 64 | 6f 6d 6e 65 73 73 20 74 |zes rand|omness t|
|00002520| 6f 20 69 6e 69 74 69 61 | 6c 69 7a 65 20 74 68 65 |o initia|lize the|
|00002530| 20 61 73 73 6f 63 69 61 | 74 65 64 20 76 61 6c 75 | associa|ted valu|
|00002540| 65 73 20 74 61 62 6c 65 | 2e 0a 2d 73 09 41 66 66 |es table|..-s.Aff|
|00002550| 65 63 74 73 20 74 68 65 | 20 73 69 7a 65 20 6f 66 |ects the| size of|
|00002560| 20 74 68 65 20 67 65 6e | 65 72 61 74 65 64 20 68 | the gen|erated h|
|00002570| 61 73 68 20 74 61 62 6c | 65 2e 20 20 54 68 65 20 |ash tabl|e. The |
|00002580| 6e 75 6d 65 72 69 63 20 | 61 72 67 75 6d 65 6e 74 |numeric |argument|
|00002590| 0a 09 66 6f 72 20 74 68 | 69 73 20 6f 70 74 69 6f |..for th|is optio|
|000025a0| 6e 20 69 6e 64 69 63 61 | 74 65 73 20 60 60 68 6f |n indica|tes ``ho|
|000025b0| 77 20 6d 61 6e 79 20 74 | 69 6d 65 73 20 6c 61 72 |w many t|imes lar|
|000025c0| 67 65 72 27 27 20 74 68 | 65 20 74 61 62 6c 65 20 |ger'' th|e table |
|000025d0| 72 61 6e 67 65 0a 09 73 | 68 6f 75 6c 64 20 62 65 |range..s|hould be|
|000025e0| 2c 20 69 6e 20 72 65 6c | 61 74 69 6f 6e 73 68 69 |, in rel|ationshi|
|000025f0| 70 20 74 6f 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |p to the| number |
|00002600| 6f 66 20 6b 65 79 73 2c | 20 65 2e 67 2e 20 61 20 |of keys,| e.g. a |
|00002610| 76 61 6c 75 65 20 6f 66 | 20 33 0a 09 6d 65 61 6e |value of| 3..mean|
|00002620| 73 20 60 60 6d 61 6b 65 | 20 74 68 65 20 74 61 62 |s ``make| the tab|
|00002630| 6c 65 20 61 62 6f 75 74 | 20 33 20 74 69 6d 65 73 |le about| 3 times|
|00002640| 20 6c 61 72 67 65 72 20 | 74 68 61 6e 20 74 68 65 | larger |than the|
|00002650| 20 6e 75 6d 62 65 72 20 | 6f 66 20 69 6e 70 75 74 | number |of input|
|00002660| 0a 09 6b 65 79 73 2e 27 | 27 20 20 41 20 6c 61 72 |..keys.'|' A lar|
|00002670| 67 65 72 20 74 61 62 6c | 65 20 73 68 6f 75 6c 64 |ger tabl|e should|
|00002680| 20 64 65 63 72 65 61 73 | 65 20 74 68 65 20 74 69 | decreas|e the ti|
|00002690| 6d 65 20 72 65 71 75 69 | 72 65 64 20 66 6f 72 20 |me requi|red for |
|000026a0| 61 6e 0a 09 75 6e 73 75 | 63 63 65 73 73 66 75 6c |an..unsu|ccessful|
|000026b0| 20 73 65 61 72 63 68 2c | 20 61 74 20 74 68 65 20 | search,| at the |
|000026c0| 65 78 70 65 6e 73 65 20 | 6f 66 20 65 78 74 72 61 |expense |of extra|
|000026d0| 20 74 61 62 6c 65 20 73 | 70 61 63 65 2e 20 20 44 | table s|pace. D|
|000026e0| 65 66 61 75 6c 74 0a 09 | 76 61 6c 75 65 20 69 73 |efault..|value is|
|000026f0| 20 31 2e 20 20 54 68 69 | 73 20 61 63 74 75 61 6c | 1. Thi|s actual|
|00002700| 20 74 61 62 6c 65 20 73 | 69 7a 65 20 6d 61 79 20 | table s|ize may |
|00002710| 76 61 72 79 20 73 6f 6d | 65 77 68 61 74 2e 0a 2d |vary som|ewhat..-|
|00002720| 53 09 43 61 75 73 65 73 | 20 74 68 65 20 67 65 6e |S.Causes| the gen|
|00002730| 65 72 61 74 65 64 20 43 | 20 63 6f 64 65 20 74 6f |erated C| code to|
|00002740| 20 75 73 65 20 61 20 73 | 77 69 74 63 68 20 73 74 | use a s|witch st|
|00002750| 61 74 65 6d 65 6e 74 20 | 73 63 68 65 6d 65 2c 20 |atement |scheme, |
|00002760| 72 61 74 68 65 72 0a 09 | 74 68 61 6e 20 61 6e 20 |rather..|than an |
|00002770| 61 72 72 61 79 20 6c 6f | 6f 6b 75 70 20 74 61 62 |array lo|okup tab|
|00002780| 6c 65 2e 20 20 54 68 69 | 73 20 70 6f 74 65 6e 74 |le. Thi|s potent|
|00002790| 69 61 6c 6c 79 20 73 61 | 76 65 73 20 2a 6d 75 63 |ially sa|ves *muc|
|000027a0| 68 2a 20 73 70 61 63 65 | 2c 20 61 74 0a 09 74 68 |h* space|, at..th|
|000027b0| 65 20 65 78 70 65 6e 73 | 65 20 6f 66 20 6c 6f 6e |e expens|e of lon|
|000027c0| 67 65 72 20 74 69 6d 65 | 20 66 6f 72 20 65 61 63 |ger time| for eac|
|000027d0| 68 20 6c 6f 6f 6b 75 70 | 2e 20 20 4d 6f 73 74 6c |h lookup|. Mostl|
|000027e0| 79 20 69 6d 70 6f 72 74 | 61 6e 74 20 66 6f 72 0a |y import|ant for.|
|000027f0| 09 2a 6c 61 72 67 65 2a | 20 69 6e 70 75 74 20 73 |.*large*| input s|
|00002800| 65 74 73 2c 20 69 2e 65 | 2e 2c 20 67 72 65 61 74 |ets, i.e|., great|
|00002810| 65 72 20 74 68 61 6e 20 | 61 72 6f 75 6e 64 20 31 |er than |around 1|
|00002820| 30 30 20 69 74 65 6d 73 | 20 6f 72 20 73 6f 2e 0a |00 items| or so..|
|00002830| 2d 74 09 41 6c 6c 6f 77 | 73 20 74 68 65 20 75 73 |-t.Allow|s the us|
|00002840| 65 72 20 74 6f 20 69 6e | 63 6c 75 64 65 20 61 20 |er to in|clude a |
|00002850| 73 74 72 75 63 74 75 72 | 65 64 20 74 79 70 65 20 |structur|ed type |
|00002860| 64 65 63 6c 61 72 61 74 | 69 6f 6e 20 66 6f 72 20 |declarat|ion for |
|00002870| 0a 09 67 65 6e 65 72 61 | 74 65 64 20 63 6f 64 65 |..genera|ted code|
|00002880| 2e 20 41 6e 79 20 74 65 | 78 74 20 62 65 66 6f 72 |. Any te|xt befor|
|00002890| 65 20 25 25 25 25 20 69 | 73 20 63 6f 6e 73 69 64 |e %%%% i|s consid|
|000028a0| 65 72 20 70 61 72 74 20 | 6f 66 20 74 68 65 20 74 |er part |of the t|
|000028b0| 79 70 65 0a 09 64 65 63 | 6c 61 72 61 74 69 6f 6e |ype..dec|laration|
|000028c0| 2e 20 20 4b 65 79 20 77 | 6f 72 64 73 20 61 6e 64 |. Key w|ords and|
|000028d0| 20 61 64 64 69 74 69 6f | 6e 61 6c 20 66 69 65 6c | additio|nal fiel|
|000028e0| 64 73 20 6d 61 79 20 66 | 6f 6c 6c 6f 77 20 74 68 |ds may f|ollow th|
|000028f0| 69 73 2c 20 6f 6e 65 0a | 09 67 72 6f 75 70 20 6f |is, one.|.group o|
|00002900| 66 20 66 69 65 6c 64 73 | 20 70 65 72 20 6c 69 6e |f fields| per lin|
|00002910| 65 2e 0a 2d 54 09 50 72 | 65 76 65 6e 74 73 20 74 |e..-T.Pr|events t|
|00002920| 68 65 20 74 72 61 6e 73 | 66 65 72 20 6f 66 20 74 |he trans|fer of t|
|00002930| 68 65 20 74 79 70 65 20 | 64 65 63 6c 61 72 61 74 |he type |declarat|
|00002940| 69 6f 6e 20 74 6f 20 74 | 68 65 20 6f 75 74 70 75 |ion to t|he outpu|
|00002950| 74 20 66 69 6c 65 2e 0a | 09 55 73 65 20 74 68 69 |t file..|.Use thi|
|00002960| 73 20 6f 70 74 69 6f 6e | 20 69 66 20 74 68 65 20 |s option| if the |
|00002970| 74 79 70 65 20 69 73 20 | 61 6c 72 65 61 64 79 20 |type is |already |
|00002980| 64 65 66 69 6e 65 64 20 | 65 6c 73 65 77 68 65 72 |defined |elsewher|
|00002990| 65 2e 0a 2d 76 09 50 72 | 69 6e 74 73 20 6f 75 74 |e..-v.Pr|ints out|
|000029a0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 76 65 72 | the cur|rent ver|
|000029b0| 73 69 6f 6e 20 6e 75 6d | 62 65 72 0a 25 65 25 61 |sion num|ber.%e%a|
|000029c0| 0a 00 69 6e 69 74 69 61 | 6c 20 76 61 6c 75 65 20 |..initia|l value |
|000029d0| 25 64 20 6d 75 73 74 20 | 62 65 20 6e 6f 6e 2d 7a |%d must |be non-z|
|000029e0| 65 72 6f 2c 20 69 67 6e | 6f 72 69 6e 67 20 61 6e |ero, ign|oring an|
|000029f0| 64 20 63 6f 6e 74 69 6e | 75 69 6e 67 0a 00 6a 75 |d contin|uing..ju|
|00002a00| 6d 70 20 76 61 6c 75 65 | 20 25 64 20 6d 75 73 74 |mp value| %d must|
|00002a10| 20 62 65 20 61 20 70 6f | 73 69 74 69 76 65 20 6e | be a po|sitive n|
|00002a20| 75 6d 62 65 72 0a 25 65 | 25 61 00 00 6a 75 6d 70 |umber.%e|%a..jump|
|00002a30| 20 76 61 6c 75 65 20 25 | 64 20 73 68 6f 75 6c 64 | value %|d should|
|00002a40| 20 62 65 20 6f 64 64 2c | 20 61 64 64 69 6e 67 20 | be odd,| adding |
|00002a50| 31 20 61 6e 64 20 63 6f | 6e 74 69 6e 75 69 6e 67 |1 and co|ntinuing|
|00002a60| 2e 2e 2e 0a 00 00 69 6c | 6c 65 67 61 6c 20 6b 65 |......il|legal ke|
|00002a70| 79 20 76 61 6c 75 65 20 | 6f 72 20 72 61 6e 67 65 |y value |or range|
|00002a80| 2c 20 75 73 65 20 31 2c | 32 2c 33 2d 25 64 2c 27 |, use 1,|2,3-%d,'|
|00002a90| 24 27 20 6f 72 20 27 2a | 27 2e 0a 25 65 25 61 00 |$' or '*|'..%e%a.|
|00002aa0| 6e 6f 20 6b 65 79 73 20 | 73 65 6c 65 63 74 65 64 |no keys |selected|
|00002ab0| 0a 25 65 25 61 00 64 75 | 70 6c 69 63 61 74 65 20 |.%e%a.du|plicate |
|00002ac0| 6b 65 79 73 20 73 65 6c | 65 63 74 65 64 0a 25 65 |keys sel|ected.%e|
|00002ad0| 25 61 00 00 69 6d 70 72 | 6f 70 65 72 20 72 61 6e |%a..impr|oper ran|
|00002ae0| 67 65 20 61 72 67 75 6d | 65 6e 74 20 25 73 0a 25 |ge argum|ent %s.%|
|00002af0| 65 25 61 00 25 64 20 69 | 73 20 65 78 63 65 73 73 |e%a.%d i|s excess|
|00002b00| 69 76 65 2c 20 64 69 64 | 20 79 6f 75 20 72 65 61 |ive, did| you rea|
|00002b10| 6c 6c 79 20 6d 65 61 6e | 20 74 68 69 73 3f 21 20 |lly mean| this?! |
|00002b20| 28 74 79 70 65 20 25 6e | 20 2d 68 20 66 6f 72 20 |(type %n| -h for |
|00002b30| 68 65 6c 70 29 0a 00 00 | 25 6e 3a 20 76 65 72 73 |help)...|%n: vers|
|00002b40| 69 6f 6e 20 25 73 0a 25 | 65 25 61 0a 00 00 25 65 |ion %s.%|e%a...%e|
|00002b50| 25 61 00 00 72 00 75 6e | 61 62 6c 65 20 74 6f 20 |%a..r.un|able to |
|00002b60| 72 65 61 64 20 6b 65 79 | 20 77 6f 72 64 20 66 69 |read key| word fi|
|00002b70| 6c 65 20 25 73 0a 25 65 | 25 61 00 00 65 78 74 72 |le %s.%e|%a..extr|
|00002b80| 61 20 74 72 61 69 6c 69 | 6e 67 20 61 72 67 75 6d |a traili|ng argum|
|00002b90| 65 6e 74 73 20 74 6f 20 | 25 6e 0a 25 65 25 61 00 |ents to |%n.%e%a.|
|00002ba0| 2f 2a 20 43 6f 6d 6d 61 | 6e 64 2d 6c 69 6e 65 3a |/* Comma|nd-line:|
|00002bb0| 20 00 25 73 20 00 20 2a | 2f 0a 0a 00 00 00 63 61 | .%s . *|/.....ca|
|00002bc0| 6e 27 74 20 68 61 73 68 | 20 6b 65 79 77 6f 72 64 |n't hash| keyword|
|00002bd0| 20 25 73 20 77 69 74 68 | 20 63 68 6f 73 65 6e 20 | %s with| chosen |
|00002be0| 6b 65 79 20 70 6f 73 69 | 74 69 6f 6e 73 0a 25 61 |key posi|tions.%a|
|00002bf0| 00 00 6e 75 6d 62 65 72 | 20 6f 66 20 6b 65 79 73 |..number| of keys|
|00002c00| 20 3d 20 25 64 0a 6d 61 | 78 69 6d 75 6d 20 61 73 | = %d.ma|ximum as|
|00002c10| 73 6f 63 69 61 74 65 64 | 20 76 61 6c 75 65 20 69 |sociated| value i|
|00002c20| 73 20 25 64 0a 6d 61 78 | 69 6d 75 6d 20 73 69 7a |s %d.max|imum siz|
|00002c30| 65 20 6f 66 20 68 61 73 | 68 20 74 61 62 6c 65 20 |e of has|h table |
|00002c40| 69 73 20 25 64 0a 00 00 | 63 6f 6c 6c 69 73 69 6f |is %d...|collisio|
|00002c50| 6e 2c 20 70 72 69 6f 72 | 2d 3e 6b 65 79 20 3d 20 |n, prior|->key = |
|00002c60| 25 73 2c 20 63 75 72 72 | 2d 3e 6b 65 79 20 3d 20 |%s, curr|->key = |
|00002c70| 25 73 2c 20 68 61 73 68 | 5f 76 61 6c 75 65 20 3d |%s, hash|_value =|
|00002c80| 20 25 64 0a 00 00 63 68 | 61 6e 67 65 73 20 6f 6e | %d...ch|anges on|
|00002c90| 20 25 64 20 68 61 73 68 | 20 76 61 6c 75 65 73 20 | %d hash| values |
|00002ca0| 73 74 69 6c 6c 20 70 72 | 6f 64 75 63 65 20 64 75 |still pr|oduce du|
|00002cb0| 70 6c 69 63 61 74 65 73 | 2c 20 63 6f 6e 74 69 6e |plicates|, contin|
|00002cc0| 75 69 6e 67 2e 2e 2e 0a | 00 00 0a 49 6e 74 65 72 |uing....|...Inter|
|00002cd0| 6e 61 6c 20 65 72 72 6f | 72 2c 20 64 75 70 6c 69 |nal erro|r, dupli|
|00002ce0| 63 61 74 65 20 76 61 6c | 75 65 20 25 64 3a 0a 74 |cate val|ue %d:.t|
|00002cf0| 72 79 20 6f 70 74 69 6f | 6e 73 20 2d 44 20 6f 72 |ry optio|ns -D or|
|00002d00| 20 2d 72 2c 20 6f 72 20 | 75 73 65 20 6e 65 77 20 | -r, or |use new |
|00002d10| 6b 65 79 20 70 6f 73 69 | 74 69 6f 6e 73 2e 0a 0a |key posi|tions...|
|00002d20| 00 00 0a 64 75 6d 70 69 | 6e 67 20 6f 63 63 75 72 |...dumpi|ng occur|
|00002d30| 72 65 6e 63 65 20 61 6e | 64 20 61 73 73 6f 63 69 |rence an|d associ|
|00002d40| 61 74 65 64 20 76 61 6c | 75 65 73 20 74 61 62 6c |ated val|ues tabl|
|00002d50| 65 73 0a 00 61 73 73 6f | 5f 76 61 6c 75 65 73 5b |es..asso|_values[|
|00002d60| 25 63 5d 20 3d 20 25 33 | 64 2c 20 6f 63 63 75 72 |%c] = %3|d, occur|
|00002d70| 72 65 6e 63 65 73 5b 25 | 63 5d 20 3d 20 25 33 64 |rences[%|c] = %3d|
|00002d80| 0a 00 65 6e 64 20 74 61 | 62 6c 65 20 64 75 6d 70 |..end ta|ble dump|
|00002d90| 69 6e 67 0a 00 00 | |ing... | |
+--------+-------------------------+-------------------------+--------+--------+